// Copyright Rachael Colley 2013.

package rach.grid.andgrid1;

import java.io.InputStream;
import java.util.Map;

public class InitialiseGrid {
	
	private LoadGridDataFromFile load;
	private WorldGrid grid;
	
	public InitialiseGrid(WorldParameters wp, String[] filePaths, boolean islevel0) {
		if (wp != null) {
			load = new LoadGridDataFromFile(wp, filePaths, islevel0);
			grid = load.getWorldGrid();
		}
		else {
			// Throw
		}
	}
	
	public InitialiseGrid(WorldParameters wp, InputStream[] is, boolean islevel0) {
		if (wp != null) {
			load = new LoadGridDataFromFile(wp, is, islevel0);
			grid = load.getWorldGrid();
		}
		else {
			// Throw
		}
	}
	
	public void reloadGrid(WorldParameters wp, String[] filePaths, boolean islevel0) {
		load = new LoadGridDataFromFile(wp, filePaths, islevel0);
		grid = load.getWorldGrid();
	}
	
	public InitialiseGrid(WorldParameters wp, Map<Integer,Map<Integer,Map<Integer,GridCell>>> zMap) {
		if (wp != null) {
			populateGridFromMap();
			//grid = 
		}
		else {
			// Throw
		}
	}
	
	public void populateGridFromMap() {
		
	}

	public WorldGrid getGrid() {
		return grid;
	}

	
	
	

}
